Skip to content

Conversation

@suejung-sentry
Copy link
Contributor

@suejung-sentry suejung-sentry commented Jul 9, 2025

Paired with this https://github.com/codecov/umbrella/pull/298/files

Properly show the user the error

Screenshot 2025-07-09 at 4 05 37 PM

@codecov
Copy link

codecov bot commented Jul 9, 2025

Bundle Report

Changes will increase total bundle size by 764 bytes (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 6.23MB 370 bytes (0.01%) ⬆️
gazebo-production-esm 6.31MB 394 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-production-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js 394 bytes 55.51kB 0.71%

Files in assets/index.*.js:

  • ./src/services/account/useUpdateBillingAddress.ts → Total Size: 554 bytes

  • ./src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/Address/AddressForm.tsx → Total Size: 3.69kB

view changes for bundle: gazebo-production-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js 370 bytes 52.36kB 0.71%

Files in assets/index-legacy.*.js:

  • ./src/services/account/useUpdateBillingAddress.ts → Total Size: 554 bytes

  • ./src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/Address/AddressForm.tsx → Total Size: 3.69kB

@codecov-qa
Copy link

codecov-qa bot commented Jul 9, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.63%. Comparing base (b5308dd) to head (cec4836).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rentOrgPlan/BillingDetails/Address/AddressForm.tsx 81.81% 2 Missing ⚠️
@@            Coverage Diff             @@
##             main    #3909      +/-   ##
==========================================
- Coverage   98.64%   98.63%   -0.02%     
==========================================
  Files         828      828              
  Lines       15083    15092       +9     
  Branches     4319     4314       -5     
==========================================
+ Hits        14879    14886       +7     
- Misses        196      198       +2     
  Partials        8        8              
Files with missing lines Coverage Δ
src/services/account/useUpdateBillingAddress.ts 100.00% <ø> (ø)
...rentOrgPlan/BillingDetails/Address/AddressForm.tsx 90.00% <81.81%> (-5.24%) ⬇️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.15% <81.81%> (-0.03%) ⬇️
Services 99.32% <ø> (ø)
Shared 99.12% <ø> (ø)
UI 99.01% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5308dd...cec4836. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codecov-public-qa
Copy link

codecov-public-qa bot commented Jul 9, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.63%. Comparing base (b5308dd) to head (cec4836).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rentOrgPlan/BillingDetails/Address/AddressForm.tsx 81.81% 2 Missing ⚠️
@@            Coverage Diff             @@
##             main    #3909      +/-   ##
==========================================
- Coverage   98.64%   98.63%   -0.02%     
==========================================
  Files         828      828              
  Lines       15083    15092       +9     
  Branches     4319     4322       +3     
==========================================
+ Hits        14879    14886       +7     
- Misses        196      198       +2     
  Partials        8        8              
Files with missing lines Coverage Δ
src/services/account/useUpdateBillingAddress.ts 100.00% <ø> (ø)
...rentOrgPlan/BillingDetails/Address/AddressForm.tsx 90.00% <81.81%> (-5.24%) ⬇️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.15% <81.81%> (-0.03%) ⬇️
Services 99.32% <ø> (ø)
Shared 99.12% <ø> (ø)
UI 99.01% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5308dd...cec4836. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codecov-staging
Copy link

codecov-staging bot commented Jul 9, 2025

Bundle Report

Changes will increase total bundle size by 764 bytes (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system 6.23MB 370 bytes (0.01%) ⬆️
gazebo-staging-esm 6.31MB 394 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-staging-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js 370 bytes 52.36kB 0.71%

Files in assets/index-legacy.*.js:

  • ./src/services/account/useUpdateBillingAddress.ts → Total Size: 554 bytes

  • ./src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/Address/AddressForm.tsx → Total Size: 3.69kB

view changes for bundle: gazebo-staging-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js 394 bytes 55.51kB 0.71%

Files in assets/index.*.js:

  • ./src/services/account/useUpdateBillingAddress.ts → Total Size: 554 bytes

  • ./src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/Address/AddressForm.tsx → Total Size: 3.69kB

@codecov
Copy link

codecov bot commented Jul 9, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

Project coverage is 98.63%. Comparing base (b5308dd) to head (cec4836).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...rentOrgPlan/BillingDetails/Address/AddressForm.tsx 81.81% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3909      +/-   ##
==========================================
- Coverage   98.64%   98.63%   -0.02%     
==========================================
  Files         828      828              
  Lines       15083    15092       +9     
  Branches     4311     4314       +3     
==========================================
+ Hits        14879    14886       +7     
- Misses        196      198       +2     
  Partials        8        8              
Files with missing lines Coverage Δ
src/services/account/useUpdateBillingAddress.ts 100.00% <ø> (ø)
...rentOrgPlan/BillingDetails/Address/AddressForm.tsx 90.00% <81.81%> (-5.24%) ⬇️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.15% <81.81%> (-0.03%) ⬇️
Services 99.32% <ø> (ø)
Shared 99.12% <ø> (ø)
UI 99.01% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5308dd...cec4836. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Jul 9, 2025

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
1685c99 Wed, 09 Jul 2025 23:26:17 GMT Expired Expired
681f107 Wed, 09 Jul 2025 23:46:41 GMT Expired Expired
cec4836 Thu, 10 Jul 2025 00:46:49 GMT Cloud Enterprise

@codecov-staging
Copy link

codecov-staging bot commented Jul 9, 2025

Codecov Report

Attention: Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rentOrgPlan/BillingDetails/Address/AddressForm.tsx 81.81% 2 Missing ⚠️
@@            Coverage Diff             @@
##             main    #3909      +/-   ##
==========================================
- Coverage   98.64%   98.63%   -0.02%     
==========================================
  Files         828      828              
  Lines       15083    15092       +9     
  Branches     4311     4314       +3     
==========================================
+ Hits        14879    14886       +7     
- Misses        196      198       +2     
  Partials        8        8              
Files with missing lines Coverage Δ
src/services/account/useUpdateBillingAddress.ts 100.00% <ø> (ø)
...rentOrgPlan/BillingDetails/Address/AddressForm.tsx 90.00% <81.81%> (-5.24%) ⬇️
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.15% <81.81%> (-0.03%) ⬇️
Services 99.32% <ø> (ø)
Shared 99.12% <ø> (ø)
UI 99.01% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5308dd...cec4836. Read the comment docs.

if (error.message) {
return `Could not save billing address: ${error.message}`
}
return 'Could not save billing address. Please contact support for assistance.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: we should add the email here too if this is the copy we wanna show. I.e. contact support at [email protected] or w/e it is (not sure myself haha)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar on line 144

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!
looks like rest of app says [email protected] so used that

mutate: updateAddress,
isLoading,
error,
reset,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do u know why we were able to get rid of this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh is it because we want the error to persist?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed the former check of !reset would always be falsy because reset is a function. The form otherwise didn't require it. I think useMutation doesn't even return a property reset: () => void so that may be a leftover from some long-ago version of this that used react Form

@suejung-sentry suejung-sentry added this pull request to the merge queue Jul 10, 2025
Merged via the queue into main with commit 7ec8050 Jul 10, 2025
52 of 64 checks passed
@suejung-sentry suejung-sentry deleted the sshin/fix-address branch July 10, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants